class Linear {
    public:
    Linear(double slope = 1, double y0 = 0):slope_(slope), y0_(y0){
    }
    double operator() (double x) {
        return y0_ + slope_ * x;
    }
    private:
    double slope_;
    double y0_;
};